<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./node_modules/vue/dist/vue.js"></script>
    <script src="./node_modules/jquery/dist/jquery.js"></script>
    <style>
        #d1{
            display: none;
        }
    </style>
</head>
<body>
    <div id="d1">炒肝包子</div>
    <a id = "show" href="javascript:void(0)">显示</a>
    <div id="app">
        <button @click="fun">按一下</button>
        <p v-if = "flag">豆汁焦圈</p>
        <p v-show = "flag">油饼豆腐脑</p>
    </div>
    <script>
        //1.创建Vue实例
        const vm = new Vue({
            el:"#app",
            data() {
                return {
                    flag:false
                };
            },methods: {
                fun(){
                    this.flag = !this.flag;
                }
            }
        })

        $("#show").click(function(){
            alert(1)
            $("#d1").show();
        })
    </script>
</body>
</html>